cmake_minimum_required (VERSION 2.8)
project (demo)

set(jsoncpp_DIR /antishape/06-antishape_V1_5/3rd_part/jsoncpp-1.9.5)
#set(jsoncpp_DIR ./3rd_part/jsoncpp-1.9.5)
include_directories(${jsoncpp_DIR}/include)
link_directories(${jsoncpp_DIR}/build/lib)

#set(jsoncpp_DIR /home/hxzh/01-my_work/01-tools/01-good/cplus/antiShape/antiShape_V1_5/3rd_part/jsoncpp-1.9.5)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread")


#set(Eigen3_DIR /home/hxzh/01-my_work/02-projects/cplus/06-antiShape_V1_5/3rd_part/eigen-3.4.0/build)
#find_package(Eigen3 REQUIRED)
#include_directories(${Eigen3_DIR}/build/temp/include/eigen3)
#link_directories(${${Eigen3_DIR}/build/temp/include/eigen3)

find_package(OpenCV REQUIRED)


add_library(head_src
  sender.hpp
  sender.cpp
  capturer.hpp
  capturer.cpp
  antiShape.hpp
  antiShape.cpp
  efficientGoodFeaturesToTrack.hpp
  efficientGoodFeaturesToTrack.cpp
)
target_link_libraries(head_src
  ${OpenCV_LIBS}
)


add_executable(test main.cpp)
target_link_libraries(test PRIVATE ${OpenCV_LIBS} head_src libjsoncpp.a)



